//
//  Sprite.h
//  Texture
//
//  Created by Jordon Phillips on 2/26/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//
//  This class is used as a structure for every visual thing in the game

#import <Foundation/Foundation.h>
#import <OpenGLES/ES1/gl.h>


@interface Sprite : NSObject {
	GLfloat xPos;//the x position of the sprite from 0-150
	GLfloat yPos;//the y position of the sprite from 0-100
	GLfloat scale;// the radius of the sprite
	GLuint image;// the texture number of the sprite
	BOOL dead;// determins if the sprite is in use or not
	BOOL animated;//is true if the sprite is animated
	int currentFrame;// the current animation frame
	int frameDim;//the dimensions of the sprite sheet if animated, all sprites sheets are square
}

-(void)setDimensions:(int)dim;

@property GLfloat xPos;
@property GLfloat yPos;
@property GLfloat scale;
@property BOOL dead;
@property GLuint image;
@property BOOL animated;
@property int currentFrame;
@property int frameDim;

@end
